package com.xjy.headfirst.迭代器.复杂迭代器;

import java.util.Iterator;

/**
 * decription:
 *
 * @author 辛纪元
 * @since 2022-07-18
 */

public class NullIterator implements Iterator<MenuComponent>{


    @Override
    public boolean hasNext() {
        return false;
    }

    @Override
    public MenuComponent next() {
        return null;
    }
}
